package com.tidy.seed.exception;

import lombok.Data;

/**
 * @author Cao Jiwen
 * @version V1.0
 */
@Data
public class BaseException extends RuntimeException {

    private Integer code;

    private String msg;

    public BaseException() {
        super();
    }


    public BaseException(Integer code, String msg) {
        super(msg); // 将消息传递给父类，确保 getMessage() 能获取到值
        this.code = code;
        this.msg = msg;
    }
}
